<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Ko3 extends Controller_DefaultTemplate {

    public function action_index() {
        $ko3_inner                        = array();
        $ko3                              = array();
        $this->template->title            = 'Kohana 3.0';
        $this->template->meta_keywords    = 'PHP, Kohana, KO3, Framework';
        $this->template->meta_description = 'A test of of the KO3 framework';
        $this->template->script = View::factory('blocks/ko3_script')->render();

        // Add defaults to template variables.
        $this->template->styles  = array('assets/css/smoothness/jquery-ui-1.8.7.custom.css' => 'screen');
        $this->template->scripts = array('assets/js/jquery-1.4.4.min.js','assets/js/jquery-ui-1.8.7.custom.min');
        

        View::set_global('x', 'This is a global variable');

        $ko3_inner['content']             = 'We have more data';
        $ko3['content']                   = 'We have data';

        $ko3['ko3_inner']                 = View::factory('blocks/ko3_inner', $ko3_inner)->render();
        $this->template->content          = View::factory('pages/ko3', $ko3);
       
    }
} // End Welcome
